import time

# a = 15
# b = 12345678.1234567
# s ='I love python!'
# print('a = %05d' % a)
# print(' b = %8.3f' % b)
#
# a = 15
# b = 12345678.1234567
# s = 'I love python!'
# print('a = %05d' % a)
# print('d = %8.3f' % b)
# print('%17s' % s)
# print('%-17.6s' % s)

import  time
scale =10
print('-------------执行开始------------')
for i in  range (scale + 1):
    done = '**' * i
    undone = '..' * (scale - i)
    percent = i / scale
    print('{:>4.0%} [{}->{}]'.format(percent, done, undone))
    time.sleep(0.1)
print('----------执行结束----------')

strs = 'Rain falls     on  field  and    tree.'
print(strs)
split_strs = strs.split()
print(split_strs)
join_strs =''.join(split_strs)
print(join_strs)

checkStr = input('请输入要判断的字符串： \n')
filag = True
low = 0
